package com.gopay.common.domain.bank.pab.ebank;

import java.io.Serializable;
import java.sql.Date;

import com.gopay.common.domain.bank.BaseMessage;

/**
 * 平安银行订单查询接口（适用与B2B、B2C）
 * 
 * @author WangHongFei
 * 
 */
public class PadQueryOrdersMessageReq extends BaseMessage implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Date beginDate;// 订单查询的起始日期（不能为空串””，必填）
	private Date endDate;// 订单查询的截止日期（不能为空串””，必填）
	private String beginTime;// 订单查询起始日的时间 （可为空串“”，空串表示” 00:00:00.0000”）
	private String endTime; //订单查询截止日的时间  （可为空串“”，空串表示" 23:59:59.999999"）
	private String orderId;// 订单号（是在上面字段限制的时间段的订单号）
	
	public Date getBeginDate() {
		return beginDate;
	}
	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public String getBeginTime() {
		if(beginTime == null){
			beginTime = "";
		}
		return beginTime.trim();
	}
	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}
	public String getEndTime() {
		if(endTime == null){
			endTime = "";
		}
		return endTime.trim();
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	public String getOrderId() {
		if(orderId == null){
			orderId = "";
		}
		return orderId.trim();
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	
	public String toString(){
		StringBuffer b = new StringBuffer(this.getClass().getName() + ": \r\n");
		b.append("--orderId: " + orderId + "\r\n");
		b.append("--beginDate: " + beginDate + "\r\n");
		b.append("--endDate: " + endDate + "\r\n");
		b.append("--beginTime: " + beginTime + "\r\n");
		b.append("--endTime: " + endTime + "\r\n");
		return b.toString();
	}
}

